package com.sinosoft.cpyy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sinosoft.cpyy.dao.master.UsersMapper;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class IndexController {

    private final UsersMapper UsersMapper;

    @Autowired
    public IndexController(UsersMapper UsersMapper) {
        this.UsersMapper = UsersMapper;
    }

    @RequestMapping(value = {"/", "/index.html"})
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView();

        modelAndView.setViewName("index");
        return modelAndView;
    }

}
